package edu.sias.hyzn.mapper;

import edu.sias.hyzn.domain.Visit;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface VisitMapper {
    void insertVisit(Visit visit);

    Visit selectVisitById(Long id);

    List<Visit> selectVisitList(Visit visit);

    int updateVisit(Visit visit);

    int deleteVisitById(Long id);

    int deleteVisitByIds(Long[] ids);

    int bindPatient(@Param("patientId")Long patientId, @Param("visitIds")Long[] visitIds);
}
